package com.ruoyi.project.system.recommend.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 推荐对象 recommend
 * 
 * @author ruoyi
 * @date 2021-05-27
 */
public class Recommend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 推荐描述文字摘要 */
    @Excel(name = "推荐描述文字摘要")
    private String content;

    /** 创建者，关联后台管理系统用户表主键ID */
    @Excel(name = "创建者，关联后台管理系统用户表主键ID")
    private Long creator;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /** 推送的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "推送的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sendTime;

    /** 判断是否已推送（只有已推送才在app显示）：0否  1是 */
    @Excel(name = "判断是否已推送", readConverterExp = "只=有已推送才在app显示")
    private String isSend;

    /** 一条推荐下的app数量 */
    @Excel(name = "一条推荐下的app数量")
    private Long appNum;

    /** 删除标志：0存在 1删除 */
    @Excel(name = "删除标志：0存在 1删除")
    private String delFlag;

    /** appids */
    @Excel(name = "appids")
    private String appids;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setCreator(Long creator)
    {
        this.creator = creator;
    }

    public Long getCreator()
    {
        return creator;
    }
    public void setAddtime(Date addtime)
    {
        this.addtime = addtime;
    }

    public Date getAddtime()
    {
        return addtime;
    }
    public void setSendTime(Date sendTime)
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime()
    {
        return sendTime;
    }
    public void setIsSend(String isSend)
    {
        this.isSend = isSend;
    }

    public String getIsSend()
    {
        return isSend;
    }
    public void setAppNum(Long appNum)
    {
        this.appNum = appNum;
    }

    public Long getAppNum()
    {
        return appNum;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setAppids(String appids)
    {
        this.appids = appids;
    }

    public String getAppids()
    {
        return appids;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("creator", getCreator())
            .append("addtime", getAddtime())
            .append("sendTime", getSendTime())
            .append("isSend", getIsSend())
            .append("appNum", getAppNum())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("appids", getAppids())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
